﻿<Window x:Class="ClassBuilder.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ItoC="clr-namespace:ClassBuilder"
        Title="ClassBuilder" Height="500" Width="900">
    <Window.Resources>
        <ItoC:ItemtoColor x:Key ="FormatConverter" />
        <SolidColorBrush x:Key="bgcolor" Color="LightSteelBlue"/>
    </Window.Resources>
    
    <Grid Background="{StaticResource bgcolor}">
        <Rectangle Height="24" HorizontalAlignment="Left" Margin="146,26,0,0" Name="rectangle3" Stroke="Black" VerticalAlignment="Top" Width="119" Fill="#FF190000" />
        <Rectangle Fill="Black" Height="365" HorizontalAlignment="Left" Margin="519,84,0,0" Name="rectangle2" Stroke="Black" VerticalAlignment="Top" Width="299" />
        <Rectangle Height="365" HorizontalAlignment="Left" Margin="151,84,0,0" Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="338" Fill="Black" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="109,26,0,0" Name="textBlock1" Text="Class" VerticalAlignment="Top" Width="32" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="141,23,0,0" Name="textBox1" VerticalAlignment="Top" Width="120" Text="UntitledClass" />
        
        <Button Content="Add Property" Height="23" HorizontalAlignment="Left" Margin="10,76,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
        <Button Content="Delete" Height="23" HorizontalAlignment="Left" Margin="406,47,0,0" Name="button2" VerticalAlignment="Top" Width="75" Click="button2_Click" IsEnabled="False" />
        <Button Content="Add Field" Height="23" HorizontalAlignment="Left" Margin="10,105,0,0" Name="button3" VerticalAlignment="Top" Width="75" Click="button3_Click" />
        <ListBox ItemsSource="{Binding}" Height="365" HorizontalAlignment="Left" Margin="141,76,0,0" Name="lstProps" VerticalAlignment="Top" Width="340" BorderThickness="2" SelectionChanged="lstProps_SelectionChanged" AllowDrop="True" Drop="filedropped">
            <ListBox.ItemTemplate>
                <DataTemplate > <Grid Height="35">
                <StackPanel Orientation="Horizontal" Background="{Binding propitem,Converter={StaticResource FormatConverter}}">
                       
                            <ComboBox Width="77" Text="{Binding propscope}" IsEditable="True" Height="25">
                             <ComboBoxItem Content="Private" />
                        <ComboBoxItem Content="Public" />
                    </ComboBox>
                       
                        <ComboBox Width="89" Text="{Binding proptype}" IsEditable="True" Height="25">
                        <ComboBoxItem Content="Integer" />
                        <ComboBoxItem Content="String" />
                        <ComboBoxItem Content="Decimal" />
                        <ComboBoxItem />
                    </ComboBox>
                        <TextBox Width="78" Text="{Binding propname}" Height="25"/>
                            <Grid Width="40">
                                <CheckBox VerticalAlignment="Center" HorizontalAlignment="Center" IsChecked="{Binding propreadonly}"/>
                            </Grid>
                                
                        </StackPanel> </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <TextBox Height="365" HorizontalAlignment="Left" Margin="510,76,0,0" Name="textBox2" VerticalAlignment="Top" Width="299" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" BorderThickness="2" />
        <Button Content="Generate Code" Height="23" HorizontalAlignment="Right" Margin="0,47,268,0" Name="button4" VerticalAlignment="Top" Width="100" Click="button4_Click" />
        <CheckBox Content="Blank Constructor" Height="16" HorizontalAlignment="Left" Margin="12,203,0,0" Name="checkBox1" VerticalAlignment="Top" IsChecked="True" />
        <CheckBox Content="Full Constructor" Height="16" HorizontalAlignment="Left" Margin="12,225,0,0" Name="checkBox2" VerticalAlignment="Top" IsChecked="True" />
        <Button Content="Add Method" Height="23" HorizontalAlignment="Left" Margin="10,134,0,0" Name="button6" VerticalAlignment="Top" Width="75" Click="button6_Click" />
        <Button Content="Clear" Height="23" HorizontalAlignment="Left" Margin="12,426,0,0" Name="button5" VerticalAlignment="Top" Width="75" Click="button5_Click" />
        <Menu Height="23" HorizontalAlignment="Left" Margin="0,0,0,0" Name="menu1" VerticalAlignment="Top" Background="{StaticResource bgcolor}" >
            <MenuItem Header="_File">
                <MenuItem Name="menuitemLoadMetaData" Header="Load MetaData" Click="LoadMetaDataClick"></MenuItem>
                <MenuItem Name="menuitemSaveMetaData" Header="Save MetaData" Click="SaveMetaDataClick"></MenuItem>
            </MenuItem>
            <MenuItem Header="_Help">
                <MenuItem Header="About"></MenuItem>
                </MenuItem>
        </Menu>
    </Grid>
</Window>
